home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
dax1.exe
/
CLIENT
/
INOUT
/
DOS
/
MAKEFILE
< prev
Wrap
Text File
|
1992-07-15
|
2KB
|
84 lines
#
# Program: InOut.EXE
# This makefile rebuilds the InOut Program
#
# Created: Tue Feb 25 10:20:38 1992
#
# MAKEINIT defines many of the macros used herein
# The following macros can be set via your environment:
# CCFDOS : Set compile options
# MMODEL : Set memory model 'smclh'
# QMKVER : Set to 'd' or 'p' to define VERSION
# SILENT : If defined, .SILENT will be set
!ifdef %SILENT
.silent
!endif
!ifndef %dcdir
dcdir = \nlm\dc
!else
dcdir = $(%dcdir)
!endif
program = InOut
!ifndef %mmodel
model = s
!else
model = $(%mmodel)
!endif
!ifndef %qmkver
version = d # use 'd' or 'p' here
!else
version = $(%qmkver)
!endif
!ifeq version d
lversion = DEBUG
!else
lversion = PRODUCTION
!endif
build_msg = Building a $(lversion) version of $(program)
d_linkopt = debug all
p_linkopt = debug
x_linkopt = $($(version)_linkopt)
debug = /dDEBUG # use /dDEBUG to define DEBUG for C Preprocessor
!ifndef %ccfdos
d_wccopt = /m$(model) /w4 /e99 /zp1 /d2 $(debug)
p_wccopt = /m$(model) /w4 /s /zp1 /oax
x_wccopt = $($(version)_wccopt) /dDOSCLIENT
!else
x_wccopt = $(%ccfdos) /dDOSCLIENT
!endif
compiler_cmd = $(wcc) $(x_wccopt) $[*.c
.BEFORE
echo $(build_msg)
set include=$(dcdir);$(inc_dir)
set lib=$(dcdir);$(lib_dir)
set wcg=$(code_gen)
.c.obj:
$(compiler_cmd)
InOut.exe : InOut.obj InOut.lnk $(dcdir)\cp\cpc\dos\cpapi.lib $(dcdir)\dap\dapa\dos\dapapi.lib
$(linker) @InOut
InOut.lnk : makefile
@echo name $^& >$^&.lnk
@echo option stack=8k >>$^&.lnk
@echo option caseexact, verbose >>$^&.lnk
@echo $(x_linkopt) >>$^&.lnk
@echo option map >>$^&.lnk
@echo file $^& >>$^&.lnk
@echo lib $(model)nit >>$^&.lnk
@echo lib cp\cpc\dos\cpapi >>$^&.lnk
@echo lib dap\dapa\dos\dapapi >>$^&.lnk
InOut.obj : InOut.c